<template>
    <router-view v-slot="{ Component }">
        <transition name="fade-transform" mode="out-in">
            <div :key="$route.path" class="layout-main">
                <component :is="Component"></component>
            </div>
        </transition>
    </router-view>
</template>

<script setup>

</script>
<style lang='scss' scoped>
.layout-main{
    width: 100%;
    height: 100%;
}
</style>